import DeviceDetailPage from "@/components/device-detail-page"
import { hvacData } from "@/lib/other-specialty-data"

export default async function HvacDeviceDetailPage({
  params,
  searchParams,
}: {
  params: Promise<{ name: string }>
  searchParams: Promise<{ tab?: string }>
}) {
  const resolvedParams = await params
  const resolvedSearchParams = await searchParams
  const deviceName = decodeURIComponent(resolvedParams.name)
  const defaultTab = resolvedSearchParams.tab || "naming"

  return (
    <DeviceDetailPage
      deviceName={deviceName}
      deviceData={hvacData}
      specialtyName="暖通专业"
      specialtyRoute="hvac"
      defaultTab={defaultTab}
    />
  )
} 